﻿<Window x:Class="SmushMySite.Main"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Main" Height="354" Width="626" Background="#FF7A7C82">
    <Grid ShowGridLines="True" Height="379">
        <DockPanel Name="mainDock" Margin="0,0,0,50">
            <!-- The border is used to compute the rendered height with margins.
           topBar contents will be displayed on the extended glass frame.-->
        </DockPanel>
        <Border Name="topBar" Margin="1,45,-1,50">
            <Grid Name="grid" Height="278">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="125" />
                    <ColumnDefinition Width="42" />
                    <ColumnDefinition Width="435" />
                </Grid.ColumnDefinitions>
                <Button Content="Smush My Entire Site" Height="102" HorizontalAlignment="Left" Margin="87,81,0,0" Name="btnEntire" VerticalAlignment="Top" Width="171" Click="btnEntire_Click" Panel.ZIndex="1" Grid.ColumnSpan="3" />
                <Button Content="Smush Images for a Url" Height="102" HorizontalAlignment="Left" Margin="174,81,0,0" Name="btnUrl" VerticalAlignment="Top" Width="171" Click="btnUrl_Click" Panel.ZIndex="2" Grid.Column="2" />
                <Image HorizontalAlignment="Left" Name="imgTick" Stretch="Fill" VerticalAlignment="Top" Width="91" Height="83" Margin="32,6,0,0" Grid.ColumnSpan="2" Grid.Column="1">
                    <Image.Source>
                        <BitmapImage UriSource="pack://application:,,,/images/yslow.png"></BitmapImage>
                    </Image.Source>
                </Image>
                <Label Content="Smush My Site" Height="34" HorizontalAlignment="Left" Margin="87,26,0,0" Name="label1" VerticalAlignment="Top" Width="187" FontSize="18" Grid.Column="2" Foreground="White" FontWeight="Bold" />
                <Label Content="Using Yahoo! YSlow - Smush.it™" FontSize="12" Height="34" Margin="38,232,208,0" Name="label2" VerticalAlignment="Top" Width="189" Grid.Column="2" Foreground="White" FontWeight="Normal" />
                <Menu Height="25" HorizontalAlignment="Left" Margin="0,-49,0,0" Name="menu1" VerticalAlignment="Top" Width="626" Grid.ColumnSpan="3">
                    <MenuItem Header="_File">
                        <MenuItem Header="About" Click="About_Click" />
                        <MenuItem Header="Check for Updates" Click="Update_Click" />
                        <MenuItem Header="Exit" Click="Exit_Click" />
                    </MenuItem>
                </Menu>
            </Grid>
        </Border>
    </Grid>
</Window>
